import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    name: "Login",
    redirect: '/form',
    component: () => import("@/views/sys/login/index.vue"),
  },
  {
    path: "/form",
    name: "Form",
    component: () => import("@/views/pages/demo/index.vue"), 
  },
  {
    path: "/cg",
    name: "cg",
    component: () => import("@/views/pages/cs.vue"), 
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
